package com.winning.pmph.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.persistence.Table;
import java.util.List;

@Data
@Table(name = "RELEASED_FLOW_CHART")
public class ReleasedFlowChart extends BaseEntity {

    public final static int UN_DELETE = 0;
    public final static int DELETE = 1;
    //未提交
    public final static Integer UN_COMMIT = 0;
    //已提交未审核
    public final static Integer COMMIT = 1;
    //审核通过
    public final static Integer PASS = 2;
    //审核未通过
    public final static Integer REJECT = 3;
    //已发布
    public final static Integer RELEASE = 4;
    //未修订
    public final static String  REVISED = "1";
    //已修订
    public final static String NOT_REVISED = "2";

    private static final long serialVersionUID = 1L;

    @TableId
    private String id;
    /**
     * 流程图名称
     */
    private String flowName;
    /**
     * 所属项目
     */
    private String belongingItemId;
    /**
     * 对应科学分类
     */
    private String scienceTagId;
    /**
     * 流程图json数据
     */
    private JSONObject chartJson;
    /**
     * 删除逻辑(0:未删除,1:已删除)
     */
    private int deleted;

    private Integer version;

    @TableField(exist = false)
    private String belongingItemName;
    @TableField(exist = false)
    private String scienceTagName;
    @TableField(exist = false)
    private String selectedPlatform;
    @TableField(exist = false)
    private String syncIds;
    @TableField(exist = false)
    private Integer syncStatus;

    @TableField(exist = false)
    private List<String> queryCreatedTime;
    @TableField(exist = false)
    private String isRevised;
    @TableField(exist = false)
    private String operatedTime;
}
